<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flex布局-修改主轴方向</title>
    <style>
        .box{
            
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
            width: 200px;
            background-color: pink;

        }

    </style>
</head>
<body>
    <div class="box">
        <span>媒体</span>
    </div>
</body>
</html>